uniform sampler2D tex0;
varying float fade;

void main( void )
{
    vec2 texCoord0 = vec2(gl_TexCoord[0].st);
    vec4 texture0 = texture2D( tex0, texCoord0 ).rgba;
    texture0.a*=fade;
    gl_FragColor = texture0;
}